using System;
using System.Collections.Generic;
using System.Text;

namespace XProject.Entity
{
   public class EventType
    {
        int id;
        string typename;
        #region constructors
        public EventType()
        {
            id = -1;
            typename = "";
        }
        public EventType(string _typename)
            : this()
        {
            this.TypeName = _typename;
        }
        #endregion
        #region properties
        /// <summary>
        /// Get, set id of the event type
        /// </summary>
        public int TypeID
        {
            get { return id; }
            set { id = value; }
        }
        /// <summary>
        /// Get, set name of the type
        /// </summary>
        public string TypeName
        {
            get { return typename; }
            set { typename = value; }
        }
       public override bool Equals(object obj)
       {
           EventType etype = obj as EventType;
           return this.TypeID.Equals(etype.TypeID);
       }
        #endregion
    }
}
